package com.liuyjy.test.domain.xml.affiliation.req;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

/**
 * @Author liuyjy
 * @Date 2024/12/26 16:37
 * @Description: 组织参数
 **/
@XmlAccessorType(XmlAccessType.FIELD)
@Data
public class AffiliationRequestContentBasics {

    /**
     * 字段名称
     */
    @XmlElement(name = "filedName")
    private String filedName;

    /**
     * 操作类型
     */
    @XmlElement(name = "filedType")
    private String filedType;
    /**
     * 老值
     */
    @XmlElement(name = "filedOld")
    private String filedOld;
    /**
     * 新值
     */
    @XmlElement(name = "filedNew")
    private String filedNew;

    public void setFiledType(String filedType) {
        switch (filedType) {
            case "0":
                filedType = "未改动";
                break;
            case "1":
                filedType = "新增";
                break;
            case "2":
                filedType = "修改";
                break;
            case "3":
                filedType = "删除";
                break;
        }
        this.filedType = filedType;
    }

}
